package cn.vin.utils;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @Author: Wu Shenzhuang
 * @Date: 2019/5/13 13:33
 */
public class DateUtils {
    public static void main(String[] args) {
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd");
        LocalDate now = LocalDate.now();
        System.out.println(LocalDateTime.now());
        System.out.println(now.format(formatter));
        LocalDate localDate = now.plusDays(1);
        System.out.println(localDate.format(formatter));
    }
}
